#include <GrandOthello.h>

int GrandOthello::run(int argc, char* argv[])
{
    QApplication grandOthello(argc, argv);
    MainWindow *mwGO = new MainWindow();

    /*QWidget *goWindow = new QWidget();
    QVBoxLayout *layout = new QVBoxLayout();
    QLabel *logo = new QLabel();
    QLabel *text = new QLabel();
    QPixmap *pic = new QPixmap();


    goWindow->setWindowTitle("grandOthello");

    if(pic->load(":/grandOthello_logo.png"))
    {
        logo->setPixmap(*pic);
        layout->addWidget(logo);

        text->setText(tr("Whoohoo!!! This is grandOthello baby!"));
    }
    else
    {
        text->setText(tr("grandOthello is up and running but without images =("));
    }

    
    layout->addWidget(text);

    goWindow->setLayout(layout);
    goWindow->show();*/

    mwGO->show();

    return grandOthello.exec();
}

int main(int argc, char* argv[])
{
    GrandOthello* go = new GrandOthello();
    return go->run(argc, argv);
}
